import math
import numpy as np
import matplotlib.pyplot as plt
import csv

# 定义图像和三维格式坐标轴
fig = plt.figure()
ax = plt.axes(projection='3d')
xF=list()
yF=list()
zF=list()
xB=list()
yB=list()
zB=list()
with open('Ftoed.csv', 'r') as f:
    reader = csv.reader(f)
    for row in reader:
        # print(row[0])
        xF.append(float(row[1]))
        yF.append(float(row[0]))
        zF.append(float(row[2]))

        xB.append(float(row[4]))
        yB.append(float(row[3]))
        zB.append(float(row[5]))

ax.plot3D(xF, yF, zF, c="blue")
ax.plot3D(xB, yB, zB, c="yellow")

plt.show()